![]() |
![]() |
PListQuery()
The default constructor does nothing. If a subclass uses this constructor, it MUST call InitHandle() and InitListMom() in its constructor.
PListQuery(ePMQuery query);
This constructor is normally used to execute a query.
short Count() const;
This function simply returns PListMom::Count().
void Reset() { listMom.Reset(); Scan(); }
Reset the PListMom object, and rescan the first member of the list.
void operator++(int) { Scan(); }
This is the way clients of the list query objects can iterate through the list.
virtual void Scan() = 0;
This pure virtual function must be implemented by every subclass. The Scan function is used to read the fields of the current record, typically copying them into member fields of the high level object.
void InitListMom();
This function provides the default behavior. If a query has any fixed fields before the list begins, it must override this function, or otherwise set the list mom correctly before use.
PListMom listMom;
The PListMom object keeps track of the list of items contained in the handle.
Comments or suggestions? Contact Adobe Developer Support